package com.Day11;

import java.util.Properties;

/**
 * @author: 若若叶
 * @date: 2021/7/19 13:08
 * FileName: MyProperty
 * Description:
 */
public class MyProperty {
    public static void main(String[] args) {
        Properties properties = new Properties();
        //添加对象
        properties.setProperty("张三","19");
        properties.setProperty("李四","21");
        properties.setProperty("王五","20");
        properties.setProperty("赵六","18");

        //通过key获取value
        System.out.println(properties.getProperty("张三"));  //19

    }
}
